package org.web.datajpa.controller;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.web.datajpa.service.TeacherService;

@Controller
@RequestMapping("/teacher")
public class TeacherController {

    @Autowired
    private TeacherService teacherService;

    // 返回学生列表界面
    @GetMapping("/list")
    public String getList() {
        return "/teacher/list";
    }

    @GetMapping("/manage")
    public String getManage() {
        return "/teacher/manage";
    }
}
